package Service;

import Dao.SoftwareMapper;
import Entity.Software;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SoftwareService implements ISoftwareService {

    @Autowired
    private SoftwareMapper softwareMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return softwareMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Software record) {
        return softwareMapper.insert(record);
    }

    @Override
    public int insertSelective(Software record) {
        return softwareMapper.insertSelective(record);
    }

    @Override
    public Software selectByPrimaryKey(Integer id) {
        return softwareMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Software record) {
        return softwareMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Software record) {
        return softwareMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<String> selectAllFolder() {
        return softwareMapper.selectAllFolder();
    }

    @Override
    public List<Software> selectFileInFolder(String filefolder) {
        return softwareMapper.selectFileInFolder(filefolder);
    }
}
